package io.nanfeng.scope
class A
class B
class C

context(A, B, C)
fun foo() {}

fun main() {
    val a = A()
    val b = B()
    val c = C()

    a.apply {
        b.apply {
            c.apply {
                foo()
            }
        }
    }
}